﻿//
// Created: 2018/9/6
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Util
{
    public class  CategoryAttr:IEntity
    {

        ///<summary>
        ///属性id
        ///<summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int AttrId  { get; set; }
        ///<summary>
        ///属性名称
        ///<summary>
        public string Name  { get; set; }
        ///<summary>
        ///分类id
        ///<summary>
        public int CategoryID  { get; set; }
        ///<summary>
        ///属性组id
        ///<summary>
        public int AttrGroupId  { get; set; }
        ///<summary>
        ///展示类型(0代表文字,1代表图片)
        ///<summary>
        public int ShowType  { get; set; }
        ///<summary>
        ///是否为筛选属性
        ///<summary>
        public int Isfilter  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int DisplayOrder  { get; set; } 
        
       

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}